package inline;

import android.annotation.SuppressLint;
import android.media.session.PlaybackState;
import android.os.Bundle;

import com.ss.android.article.base.app.AppData;

import java.util.Iterator;
import java.util.List;

public class SearchDemo {
    public static int e;
    public static int f;
    private static boolean p;
    public static void b() {
        if (!p) {
            e = AppData.getInstance().z;
            f = AppData.getInstance().searchResultSource;
            AppData.getInstance();
            p = true;
        }
    }

    @SuppressLint("NewApi")
    public static Object a(int arg9, long arg10, long arg12, float arg14, long arg15, CharSequence arg17, long arg18, List arg20, long arg21, Bundle arg23) {
        PlaybackState.Builder v2 = new PlaybackState.Builder();
        v2.setState(arg9, arg10, arg14, arg18);
        v2.setBufferedPosition(arg12);
        v2.setActions(arg15);
        v2.setErrorMessage(arg17);
        Iterator<PlaybackState.CustomAction> v4 = arg20.iterator();
        while (v4.hasNext()) {
            v2.addCustomAction(v4.next());
        }

        v2.setActiveQueueItemId(arg21);
        v2.setExtras(arg23);
        return v2.build();
    }
}
